package test;

import java.util.Scanner;

/**
 * A莲子工程
 */
public class test1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        System.out.println(fun(a,b));
    }
    public static int fun(int a,int b){
        return sgn(b)*Math.abs(a);
    }
    public static int  sgn(int b){
        if (b>0){
            return 1;
        }else  if (b<0){
            return -1;
        }
        return 0;
    }
}
